import request from '../utils/request.js';

export function GroupChatCreate_API(name, members) {
    return request({
        url:'/groupchat/create',
        method: 'POST',
        headers: {
            'Authorization': 'Bearer' + localStorage.getItem('token')
        },
        data: {
            name,
            members
        }
    })
}

export function GroupAdded_API(status) {
    return request({
        url:`/groupchat/added?status=${status}`,
        method: 'GET',
        headers: {
            'Authorization': 'Bearer' + localStorage.getItem('token')
        }
    })
}